package com.stu.shiro.bean;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author MI
 * @ClassName SysUser.java
 * @createTime 2021年08月25日 15:39:00
 */
@Data

public class SysUser implements Serializable {
    private static final long serialVersionUID = 1L;

    private int id;
    private String username;
    private String password;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
    }

    public SysUser() {
    }

    public SysUser(int id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
}
